#include "QWinMainForm.h"
#include "ui_QWinMainForm.h"

QWinMainForm::QWinMainForm(QWidget *parent) : QMainWindow(parent), ui(new Ui::QWinMainForm)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint);
    // QMainWindow透明显示，当设置主显示窗口的外边距时，防止外边距显示出来。
    this->setAttribute(Qt::WA_TranslucentBackground, true);

}

QWinMainForm::~QWinMainForm()
{
    delete ui;
}
